:root {
  /* 全局样式重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* 根元素样式 - 采用苹果Human Interface Guidelines设计规范 */
  :root {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light;
    color: #111111;
    background-color: #f2f2f7;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
  }

  /* 链接样式 */
  a {
    font-weight: 500;
    color: #007AFF;
    text-decoration: inherit;
    transition: color 0.2s ease;
  }
  a:hover {
    color: #0062CC;
  }

  /* 主体样式 */
  body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background-color: #f2f2f7;
  }

  /* 标题样式 - 遵循苹果字体层级 */
  h1 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }

  h2 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  /* 按钮基础样式 - 苹果风格圆角和阴影 */
  button {
    border-radius: 12px;
    border: none;
    padding: 0.75em 1.5em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #FF69B4;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  button:hover:not(:disabled) {
    background-color: #FF1493;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.25);
  }

  button:active:not(:disabled) {
    transform: translateY(0);
  }

  button:focus {
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
  }

  button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
  }

  /* 次要按钮样式 - 也使用粉色系 */
  button.secondary {
    background-color: #FFB6C1;
    color: #1C1C1E;
  }

  button.secondary:hover:not(:disabled) {
    background-color: #FFA07A;
  }

  /* 应用容器 */
  #app {
    width: 100%;
    min-height: 100vh;
  }

  /* 容器样式 */
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
  }

  /* 滚动条优化 - macOS风格 */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  /* 移动端优化：触摸目标 */
  @media (max-width: 768px) {
    a, button {
      min-height: 44px;
      min-width: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }

  /* 苹果风格的卡片基础样式 */
  .card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: all 0.2s ease;
  }

  .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
  }

  /* 苹果风格的分割线 */
  .divider {
    height: 1px;
    background-color: #E5E5EA;
    margin: 16px 0;
  }

  /* 加载状态 - 苹果风格的骨架屏 */
  /* 加载状态 - 简单的灰色背景替代骨架屏动画 */
  .skeleton {
    background: #f0f0f0;
    border-radius: 8px;
  }

  /* 苹果风格的模态框 */
  .modal {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 1;
  }

  /* 苹果风格的毛玻璃效果 */
  .blur-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.7);
  }

  /* 高对比度模式支持 */
  @media (prefers-contrast: high) {
    :root {
      color: #000000;
      background-color: #ffffff;
    }
    a {
      color: #0066CC;
    }
    button {
      background-color: #0066CC;
      border: 2px solid #000000;
    }
    .card {
      border: 2px solid #000000;
    }
  }

  /* 减少动画偏好支持 */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}